<?php #Футер навигация
class footer_navi extends Load_use
{
	function getBlock()
	{
		global $navi, $count_products;
		$html = '';
		
		foreach( $navi['category']['n'] as $main_cat )
		{
			$html_list = '';
			if( isset( $navi['sub_category']['#'.$main_cat->id.'#'] ) )
				foreach( $navi['sub_category']['#'.$main_cat->id.'#'] as $cat )
					$html_list .= '<li><a href="/'.$main_cat->url.'/'.$cat->url.'">'.$cat->title.'</a></li>';

			$html .= '	<li class="footer__navi__item">
							<dl>
								<dt><a href="/'.$main_cat->url.'">'.implode('<br />', explode(' ', $main_cat->title, 2) ).'</a></dt>
								<dd>
									<ul>
										'.$html_list.'
									</ul>
								</dd>
							</dl>
						</li>';
		}
		
		return '<div class="footer__navi">
					<ul class="footer__navi__inner centering">
						'.$html.'
					</ul>
					<div class="footer__navi__arrow">
						<span>&nbsp;</span>
					</div>
				</div>';		
	}
}